.sortable-tree {
  padding: 16px;
  font-family: system-ui, -apple-system, sans-serif;
  background-color: #f8f9fa;

  * {
    box-sizing: border-box;
  }
}

.tree-root {
  min-height: 100px;
  padding: 12px;
  background-color: white;
  border: 1px dashed #ddd;
  border-radius: 4px;

  &.dragging-over {
    background-color: #f0f8ff;
  }
}

.tree-node {
  margin-bottom: 8px;
  background-color: white;
  border: 1px solid #e8e8e8;
  border-radius: 4px;

  &:last-child {
    margin-bottom: 0;
  }

  &.dragging {
    border-color: #1890ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

.node-header {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  overflow: hidden;
  background-color: #fafafa;
  border-radius: 4px;
  outline: 1px solid #e5e9f2;
}

.drag-handle {
  margin-right: 8px;
  color: #475669;
  font-weight: bold;
  cursor: grab;
  user-select: none;
}

.collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  background: none;
  border: none;
  cursor: pointer;
   &-icon {
    width: 10px;
    color: #475669;
    font-size: 10px;
    transition: all 0.3s;
    &:hover {
      color: #324057;
    }
  }
}

.node-info {
  display: flex;
  flex: 1;
  align-items: center;
  overflow: hidden;
}

.node-type {
  margin-right: 8px;
  font-weight: 600;
  font-size: 12px;
}

.node-id {
  flex: 1;
  overflow: hidden;
  color: #475669;
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.container-content {
  padding: 12px;
}

.columns-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.column {
  background-color: #fafafa;
  border: 1px solid #e5e9f2;
  border-radius: 4px;

  &.dragging {
    border-color: #1890ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

.column-header {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e5e9f2;
}

.column-title {
  font-weight: 500;
}

.column-content {
  min-height: 50px;
  padding: 8px;
  background-color: white;

  &.dragging-over {
    background-color: #f0f8ff;
  }
}

.block-item {
  margin-bottom: 8px;
  padding: 8px 12px;
  background-color: white;
  border: 1px solid #e5e9f2;
  border-radius: 4px;
  cursor: grab;

  &:last-child {
    margin-bottom: 0;
  }

  &.dragging {
    border-color: #1890ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

.block-title {
  font-size: 14px;
}


/* 添加到你的index.less文件中 */
.drop-indicator {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #1890ff;
  pointer-events: none;
  z-index: 100;
}

.tree-node.drag-over {
  background-color: rgba(24, 144, 255, 0.1);
  outline: 1px dashed #1890ff;
}

.tree-node.is-dragging {
  background-color: rgba(0, 0, 0, 0.02);
}

/* 优化拖拽手柄样式 */
.drag-handle {
  cursor: grab;
}

/* 改进嵌套层级的视觉区分 */
.tree-node {
  transition: background-color 0.2s, outline 0.2s;
}

.tree-node[data-depth="1"] {
  margin-left: 20px;
}

.tree-node[data-depth="2"] {
  margin-left: 40px;
}

.tree-node[data-depth="3"] {
  margin-left: 60px;
}